﻿using Domain.Entitys.FG;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.EntityConfigurations.FG
{
    public class Fg_Picking_Outbound_DetailsConfiguration : IEntityTypeConfiguration<Fg_Picking_Outbound_Details>
    {
        public void Configure(EntityTypeBuilder<Fg_Picking_Outbound_Details> builder)
        {
            builder.ToTable("fg_picking_outbound_details");
            builder.HasKey(e => e.Picking_outbound_details_id);

            builder.HasOne(e => e.Min).WithMany(e => e.Details).HasForeignKey(e => e.Picking_outbound_id);
        }
    }
}
